package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.ShopOneDO;
import com.iotechn.unimall.data.dto.goods.ShopOneDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopOneMapper extends BaseMapper<ShopOneDO> {

    public List<ShopOneDTO> getShopOnePage(@Param("shopName") String shopName, @Param("adminId") Long adminId, @Param("shopId") Long shopId,@Param("type") Integer type, @Param("offset") Integer offset, @Param("limit") Integer limit);

    public Integer getShopOnePageCount(@Param("shopName") String shopName, @Param("adminId") Long adminId, @Param("shopId") Long shopId,@Param("type") Integer type);

    public ShopOneDTO detail(Long groupShopId);

    public List<ShopOneDTO> selectQianDao(@Param("shopId") Long shopId,@Param("type") Integer type,@Param("adminId") Long adminId);

    public List<ShopOneDTO> queryShopOneNewByPerson(@Param("shopName") String shopName, @Param("adminId") Long adminId,

                                                    @Param("startTime") String startTime,
                                                    @Param("endTime") String endTime,
                                                    @Param("shopId") Long shopId,@Param("type") Integer type, @Param("offset") Integer offset, @Param("limit") Integer limit);

    public Integer queryShopOneNewByPersonCount(@Param("shopName") String shopName, @Param("adminId") Long adminId,

                                                @Param("startTime") String startTime,
                                                @Param("endTime") String endTime,
                                                @Param("shopId") Long shopId,@Param("type") Integer type);

}
